#ifndef __KEY_H__
#define __KEY_H__

//硬件信息*********************************************************
#include "driver/gpio.h"
#define BSP_GPIO_KEY1 34
#define BSP_GPIO_KEY_LEVEL(gpio_num) (gpio_get_level(gpio_num))
#define BSP_GPIO_KEY_INIT(gpio_num) do{ \
    gpio_config_t io_conf; \
    io_conf.intr_type = GPIO_INTR_DISABLE; \
    io_conf.mode = GPIO_MODE_INPUT; \
    io_conf.pin_bit_mask = 1ULL << gpio_num; \
    io_conf.pull_down_en = GPIO_PULLDOWN_DISABLE; \
    io_conf.pull_up_en = GPIO_PULLUP_ENABLE; \
    gpio_config(&io_conf); \
} while(0)
//***************************************************************

void key_app_main(void);

#endif
